#!/usr/bin/make -f
DEB_AUTO_CLEANUP_RCS := yes
DEB_PYTHON_SYSTEM    := pycentral
export DH_PYCENTRAL=nomove

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

clean::
	rm -rf build

binary-install/savemyconf-client::
	dh_install savemyconf-client.desktop usr/share/applications
	dh_install icons usr/share/$(cdbs_curpkg)
	dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS)
	dh_icons -p$(cdbs_curpkg)
	# Delete empty dirs
	find debian/$(cdbs_curpkg)/usr/share/ -type d -empty -delete
